unit Ubusqueda;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, Grids, DBGrids, StdCtrls, ExtCtrls;

type
  TFBusqueda = class(TForm)
    RadioGroup1: TRadioGroup;
    Panel1: TPanel;
    Edit1: TEdit;
    Panel2: TPanel;
    DBGrid1: TDBGrid;
    procedure FormActivate(Sender: TObject);
    procedure Edit1Change(Sender: TObject);
    procedure DBGrid1DblClick(Sender: TObject);
    procedure RadioGroup1Click(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  FBusqueda: TFBusqueda;

implementation

uses UDatamodule;

{$R *.dfm}

procedure TFBusqueda.FormActivate(Sender: TObject);
begin
   DataModule1.TEmpleados.Open;
   Edit1.SetFocus;
end;

procedure TFBusqueda.Edit1Change(Sender: TObject);
begin
   DataModule1.TEmpleados.FindNearest([edit1.Text]);
end;

procedure TFBusqueda.DBGrid1DblClick(Sender: TObject);
begin
   Fbusqueda.Close;
end;

procedure TFBusqueda.RadioGroup1Click(Sender: TObject);
begin
   {if RadioGroup1.ItemIndex=0 then
      begin
      DataModule1.TEmpleados.Filter:=
      end; }
end;

end.
